package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.AddressBook;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 当前用户查看购物车
     */
    List<ShoppingCart> getCurrentUserShorppingCartList();

    void clearShoppingCart(Long currentId);

    /**
     * 当前用户购物车指定菜品数量减一
     * @param shoppingCartDTO
     */
    void subFromShoppintCart(ShoppingCartDTO shoppingCartDTO);


}
